package com.zhoug.widget.adapter;

import android.widget.TextView;

import com.zhoug.common.adapters.recycler.BaseRecyclerViewAdapter;
import com.zhoug.common.adapters.recycler.BaseViewHolder;
import com.zhoug.widget.R;

/**
 * 文本数据适配器
 * @Author 35574
 * @Date 2020/7/2
 * @Description
 */
public class TextItemAdapter extends BaseRecyclerViewAdapter<String> {

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.widgets_text_item;
    }

    @Override
    public void onBindData(BaseViewHolder holder, String data, int position, int viewType) {
        ((TextView) holder.itemView).setText(data);
    }
}
